package com.edu.client;

import com.R;
import com.educenter.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

@FeignClient(name = "service-ucenter",fallback = addCommentFeignClient.class)
@Component
public interface addComment {

	//根据token获取用户信息
	@PostMapping("/educenter/member/getCommentMemberById/{id}")
	public UcenterMember getMemberById(@PathVariable("id") String id);

}
